<?php
	function getMEDCConnection(){
 		//$connection = @mysql_connect("9.78.211.225","medc", "medc") or die(mysql_error());
 		$connection = @mysql_connect("localhost","medc", "medc") or die(mysql_error());
 		return $connection;
	}
	
	function executeQuery($sql,$connection){
		$result = @mysql_query($sql,$connection) or die(mysql_error());
		$loopId=0;
		$resultArray =array();
		while ($oneRow = mysql_fetch_array($result)) {
			$resultArray[$loopId]=$oneRow;				
			$loopId++;
		}
		return $resultArray;
	}	
	
	function executeUpdate($sql,$connection){
		$result = @mysql_query($sql,$connection) or die(mysql_error());
	}		
?>